const filterElem = document.querySelector('feGaussianBlur');
const clearFilter = () => {
    const stdDev = filterElem.getAttribute('stdDeviation').split(' ')[1];
    const value = parseFloat(stdDev) - 0.06;
    if (value > 0) {
        filterElem.setAttribute('stdDeviation', `0 ${value}`);
        requestAnimationFrame(clearFilter);
    } else {
        return
    }
}
setTimeout(clearFilter, 300)